//Main
app.controller('mainController',["$scope","$rootScope","mainService", function($scope,$rootScope,mainService) {
    $rootScope.loading = false;  //加载

    $rootScope.prefix = "#/";

    $scope.logout = function(){
        mainService.logout(function(){
            location.href = '/admin/login/index.html';
        });
    };

}]);
